package com.itheima.demo;

public class IntegerTest {
    public static void main(String[] args) {
        String s = "23 34 5 56 55 98";
        String[] arr = s.split(" ");
        int [] intarr = new int [arr.length];
        for (int i = 0; i < arr.length; i++) {
            intarr[i]=Integer.parseInt(arr[i]);
        }
        for (int i = 0; i < intarr.length; i++) {
            int i1 = intarr[i];
            System.out.print(i1+" ");
        }
    }
}
